package com.xzmd.md_city.entity;

/**
 * @Author Corday
 * @Date 2021-7-9 15:23
 * 创建用户信息实体类,跟数据库中的user_info表对应
 */
public class UserInfo {
//  一共10属性，与数据库中表的字段对应
    private  int id;
    private  String username;
    private  String password;
    private  String realname;
    private  String  gendar;
    private  String  adress;
    private  String  email;
    private  int   score;
    private  String regdate;
    private  int status;
//生成一个无参构造器
    public UserInfo() {
    }
//    生成有参构造器
    public UserInfo(int id, String username, String password, String realname, String gendar, String adress, String email, int score, String regdate, int status) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.realname = realname;
        this.gendar = gendar;
        this.adress = adress;
        this.email = email;
        this.score = score;
        this.regdate = regdate;
        this.status = status;
    }
//    生成get/set方法

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getGendar() {
        return gendar;
    }

    public void setGendar(String gendar) {
        this.gendar = gendar;
    }

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public String getRegdate() {
        return regdate;
    }

    public void setRegdate(String regdate) {
        this.regdate = regdate;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
